#include "../include/MysqlConn.h"  
int main()
{

    MysqlConn conn;

    if (!conn.connect("root", "123", "stu", "127.0.0.1")) {
        printf("connect err\n");
        return -1;
    }
    
    std::string sql = "insert into informationTab values('wcx', 50, 'boy')";
    if (!conn.update(sql)) {
        printf("update err\n");
        return -1;
    }

    sql = "select * from informationTab";
    conn.query(sql);
    while (conn.next())
    {
        cout << typeid(conn.value(0)).name()<< ' ' << conn.value(0) << ", "
            << typeid(conn.value(0)).name()<< ' ' << conn.value(1) << ", "
            << typeid(conn.value(0)).name()<< ' ' << conn.value(2) << ", "
            << endl;
    }
    return 0;
}